# /usr/bin/python
# -*- coding: utf-8 -*-

import os,sys
BASE_DIR = os.path.dirname(os.path.abspath(os.curdir))
sys.path.append(BASE_DIR)
reload(sys)  
sys.setdefaultencoding('utf8')   
from models.Zabbix import ZBX

Z = ZBX()
hosts = Z.get_host(host="")
for host in hosts:
    print host["name"]